﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000211 RID: 529
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueCheatRollScRsp : IMessage<ChessRogueCheatRollScRsp>, IMessage, IEquatable<ChessRogueCheatRollScRsp>, IDeepCloneable<ChessRogueCheatRollScRsp>, IBufferMessage
	{
		// Token: 0x170006EA RID: 1770
		// (get) Token: 0x060017B2 RID: 6066 RVA: 0x00043847 File Offset: 0x00041A47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueCheatRollScRsp> Parser
		{
			get
			{
				return ChessRogueCheatRollScRsp._parser;
			}
		}

		// Token: 0x170006EB RID: 1771
		// (get) Token: 0x060017B3 RID: 6067 RVA: 0x0004384E File Offset: 0x00041A4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueCheatRollScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170006EC RID: 1772
		// (get) Token: 0x060017B4 RID: 6068 RVA: 0x00043860 File Offset: 0x00041A60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueCheatRollScRsp.Descriptor;
			}
		}

		// Token: 0x060017B5 RID: 6069 RVA: 0x00043867 File Offset: 0x00041A67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCheatRollScRsp()
		{
		}

		// Token: 0x060017B6 RID: 6070 RVA: 0x00043870 File Offset: 0x00041A70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCheatRollScRsp(ChessRogueCheatRollScRsp other) : this()
		{
			this.diceSurfaceId_ = other.diceSurfaceId_;
			this.rogueDiceInfo_ = ((other.rogueDiceInfo_ != null) ? other.rogueDiceInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.mMEBFMKEBCL_ = other.mMEBFMKEBCL_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060017B7 RID: 6071 RVA: 0x000438D4 File Offset: 0x00041AD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCheatRollScRsp Clone()
		{
			return new ChessRogueCheatRollScRsp(this);
		}

		// Token: 0x170006ED RID: 1773
		// (get) Token: 0x060017B8 RID: 6072 RVA: 0x000438DC File Offset: 0x00041ADC
		// (set) Token: 0x060017B9 RID: 6073 RVA: 0x000438E4 File Offset: 0x00041AE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DiceSurfaceId
		{
			get
			{
				return this.diceSurfaceId_;
			}
			set
			{
				this.diceSurfaceId_ = value;
			}
		}

		// Token: 0x170006EE RID: 1774
		// (get) Token: 0x060017BA RID: 6074 RVA: 0x000438ED File Offset: 0x00041AED
		// (set) Token: 0x060017BB RID: 6075 RVA: 0x000438F5 File Offset: 0x00041AF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDiceInfo RogueDiceInfo
		{
			get
			{
				return this.rogueDiceInfo_;
			}
			set
			{
				this.rogueDiceInfo_ = value;
			}
		}

		// Token: 0x170006EF RID: 1775
		// (get) Token: 0x060017BC RID: 6076 RVA: 0x000438FE File Offset: 0x00041AFE
		// (set) Token: 0x060017BD RID: 6077 RVA: 0x00043906 File Offset: 0x00041B06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170006F0 RID: 1776
		// (get) Token: 0x060017BE RID: 6078 RVA: 0x0004390F File Offset: 0x00041B0F
		// (set) Token: 0x060017BF RID: 6079 RVA: 0x00043917 File Offset: 0x00041B17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MMEBFMKEBCL
		{
			get
			{
				return this.mMEBFMKEBCL_;
			}
			set
			{
				this.mMEBFMKEBCL_ = value;
			}
		}

		// Token: 0x060017C0 RID: 6080 RVA: 0x00043920 File Offset: 0x00041B20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueCheatRollScRsp);
		}

		// Token: 0x060017C1 RID: 6081 RVA: 0x00043930 File Offset: 0x00041B30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueCheatRollScRsp other)
		{
			return other != null && (other == this || (this.DiceSurfaceId == other.DiceSurfaceId && object.Equals(this.RogueDiceInfo, other.RogueDiceInfo) && this.Retcode == other.Retcode && this.MMEBFMKEBCL == other.MMEBFMKEBCL && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060017C2 RID: 6082 RVA: 0x000439A0 File Offset: 0x00041BA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.DiceSurfaceId != 0U)
			{
				num ^= this.DiceSurfaceId.GetHashCode();
			}
			if (this.rogueDiceInfo_ != null)
			{
				num ^= this.RogueDiceInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.MMEBFMKEBCL != 0U)
			{
				num ^= this.MMEBFMKEBCL.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060017C3 RID: 6083 RVA: 0x00043A27 File Offset: 0x00041C27
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060017C4 RID: 6084 RVA: 0x00043A2F File Offset: 0x00041C2F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060017C5 RID: 6085 RVA: 0x00043A38 File Offset: 0x00041C38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MMEBFMKEBCL != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.MMEBFMKEBCL);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueDiceInfo_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.RogueDiceInfo);
			}
			if (this.DiceSurfaceId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.DiceSurfaceId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060017C6 RID: 6086 RVA: 0x00043ACC File Offset: 0x00041CCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.DiceSurfaceId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DiceSurfaceId);
			}
			if (this.rogueDiceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueDiceInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.MMEBFMKEBCL != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MMEBFMKEBCL);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060017C7 RID: 6087 RVA: 0x00043B54 File Offset: 0x00041D54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueCheatRollScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.DiceSurfaceId != 0U)
			{
				this.DiceSurfaceId = other.DiceSurfaceId;
			}
			if (other.rogueDiceInfo_ != null)
			{
				if (this.rogueDiceInfo_ == null)
				{
					this.RogueDiceInfo = new ChessRogueDiceInfo();
				}
				this.RogueDiceInfo.MergeFrom(other.RogueDiceInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.MMEBFMKEBCL != 0U)
			{
				this.MMEBFMKEBCL = other.MMEBFMKEBCL;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060017C8 RID: 6088 RVA: 0x00043BE4 File Offset: 0x00041DE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060017C9 RID: 6089 RVA: 0x00043BF0 File Offset: 0x00041DF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 24U)
				{
					if (num == 16U)
					{
						this.MMEBFMKEBCL = input.ReadUInt32();
						continue;
					}
					if (num == 24U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 74U)
					{
						if (this.rogueDiceInfo_ == null)
						{
							this.RogueDiceInfo = new ChessRogueDiceInfo();
						}
						input.ReadMessage(this.RogueDiceInfo);
						continue;
					}
					if (num == 104U)
					{
						this.DiceSurfaceId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040009D8 RID: 2520
		private static readonly MessageParser<ChessRogueCheatRollScRsp> _parser = new MessageParser<ChessRogueCheatRollScRsp>(() => new ChessRogueCheatRollScRsp());

		// Token: 0x040009D9 RID: 2521
		private UnknownFieldSet _unknownFields;

		// Token: 0x040009DA RID: 2522
		public const int DiceSurfaceIdFieldNumber = 13;

		// Token: 0x040009DB RID: 2523
		private uint diceSurfaceId_;

		// Token: 0x040009DC RID: 2524
		public const int RogueDiceInfoFieldNumber = 9;

		// Token: 0x040009DD RID: 2525
		private ChessRogueDiceInfo rogueDiceInfo_;

		// Token: 0x040009DE RID: 2526
		public const int RetcodeFieldNumber = 3;

		// Token: 0x040009DF RID: 2527
		private uint retcode_;

		// Token: 0x040009E0 RID: 2528
		public const int MMEBFMKEBCLFieldNumber = 2;

		// Token: 0x040009E1 RID: 2529
		private uint mMEBFMKEBCL_;
	}
}
